package service.impl;

import java.util.List;

import dao.BookDao;
import dao.impl.BookDaoImpl;
import pojo.Book;
import service.BookManager;

public enum BookManagerFactory implements BookManager {
	INSTANCE;
	
	private BookDao bookDao = new BookDaoImpl();
	
	@Override
	public Book loadBook(String bookId) {
		return bookDao.load(bookId);
	}

	@Override
	public List<Book> findAllBooks() {
		return bookDao.findAll();
	}
}
